<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;

Route::get('think', function () {
    return 'hello,ThinkPHP6!';
});

Route::get('hello/:name', 'index/hello');

Route::get('member/index', 'member/index');
Route::get('member/create', 'member/create');

Route::post('member/save', 'member/save');
Route::get('member/read/:id', 'member/read');
Route::get('member/edit/:id', 'member/edit');
Route::get("member/delete/:id","member/delete");

Route::post("add","book/addBook");//添加书籍
Route::get("list","book/listBook");//书籍列表

Route::put("update/:id","book/updateBook");//更新书籍信息
Route::delete("delete/:id","book/deleteBook");//更新书籍信息

Route::post('student/save', 'student/save');//保存信息
Route::get('student/index', 'student/index');//信息列表
Route::get('student/delete/:id', 'student/delete');//信息删除

Route::get('student/create', 'student/create');//添加页面

Route::get('student/edit/:id', 'student/edit');//信息编辑页











